#pragma once

#include "tinyxml2.h"
#include "PageProcessor.h"
#include "TextUtils.h"
#include "Document.h"
#include <iostream>
#include <string>
#include <vector>
#include <cstring>

using std::string;
using std::vector;
using std::endl;
using std::cout;
using std::cerr;
using namespace tinyxml2;

// 添加一个XML节点
void create_xml_doc(XMLDocument& doc, int id, const char* link, const char* title, const char* content);

// 获取一个item对应的Document
void add_document_by_xml(const string& dir, vector<Document>& doc);
